package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Community;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommunityDao extends BaseMapper<Community> {
    @Select("select * from community")
    List<Community> findAll();
    @Select("select * from community where id=#{id}")
    Community findById(Integer id);
}
